package com.szxy.miaosha.vo;

import com.szxy.miaosha.validate.IsMobile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: zwz
 * @Date:2020/9/6 21:27
 * @Description:com.szxy.miaosha.vo
 * @Version:1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LoginVo implements Serializable {

    @NotNull
    @IsMobile
    private String mobile;

    @NotNull
//    @Length(min = 32)
    private String password;

}
